<?php


namespace apps\marriage\app\op\controller;


use apps\marriage\core\model\MemberProfile;

class IndexController extends BaseMarriageOpController
{
    public function version()
    {
        return $this->success([
            'version' => config('version')
        ]);
    }

    public function constants()
    {
        $site = config('site');
        return $this->success([
            'genders' => MemberProfile::genders(),
            'incomes' => MemberProfile::incomes(),
            'jobs' => MemberProfile::jobs(),
            'nations' => MemberProfile::nations(),
            'blood_types' => MemberProfile::bloodTypes(),
            'kids' => MemberProfile::kids(),
            'faiths' => MemberProfile::faiths(),
            'drinks' => MemberProfile::drinks(),
            'smokes' => MemberProfile::smokes(),
            'job_types' => MemberProfile::jobTypes(),
            'education_types' => MemberProfile::educationTypes(),
            'marriage_status' => MemberProfile::marriageStatus(),
            'house_status' => MemberProfile::houseStatus(),
            'car_status' => MemberProfile::carStatus(),
            'distance_relationship_types' => MemberProfile::distanceRelationshipTypes(),
            'child_types' => MemberProfile::childTypes(),
            'live_parents_types' => MemberProfile::liveParentsTypes(),
            'zodiacs' => zodiacs(),
            'constellations' => constellations(),
            'vip_levels' => array_values($site['vip_levels'])
        ]);
    }

}